def compare(n):
    return f"{n-1} < {n} < {n+1}"

assert compare(5) == '4 < 5 < 6'
assert compare(1534) == '1533 < 1534 < 1535'
assert compare(0) == '-1 < 0 < 1'